package cn.smile.bean.entity.log;

import cn.smile.commons.domain.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.time.LocalDateTime;

/**
    * 拦截器访问记录
 * @author smile-jt
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("log_info")
public class LogInfo  extends BaseDomain {
    @Serial
    private static final long serialVersionUID = -468890863375892865L;
    /**
    * 访问uri
    */
    private String uri;

    /**
    * 访问时间
    */
    private LocalDateTime accessTime;

    /**
    * 访问IP
    */
    private String accessIp;

    /**
    * sessionId
    */
    private String sessionId;

    /**
    * 用户ID
    */
    private String userId;

    /**
     * 是否拒绝访问 true-是, false-否
     */
    private Boolean reject;
}